package top.korori.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.korori.entity.SvWork;
import top.korori.entity.req.SvMyWorkGetReq;
import top.korori.entity.res.SvWorkRes;
import top.korori.entity.res.SvUserWorkRes;

/**
 *
 * 作品 Mapper 接口
 *
 * @author korori
 */
@Mapper
public interface SvWorkMapper extends BaseMapper<SvWork> {

    Page<SvUserWorkRes> getHomeWorkExtUserList(@Param("page") Page<SvUserWorkRes> page);

    Page<SvWorkRes> getMyList(@Param("reqParam") SvMyWorkGetReq svMyWorkGetReq, @Param("userId") Long userId, @Param("page") Page<SvWorkRes> page);
}
